﻿<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="GozoFarmhouses._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="banner">
        <img src="Images/banner_property_image_1.jpg" />
        <img src="Images/banner_property_image_2.jpg" />
        <img src="Images/banner_property_image_3.jpg" />
        <img src="Images/banner_property_image_4.jpg" />
    </section>

    <section class="category_accomodations">
        <div class="row">
            <div class="large-12 column"> 
                <div class="title">
                    <h1>BROWSE BY CATEGORY</h1>
                </div>
                
                <div class="tags">
                    <asp:ListView ID="ListView2" runat="server" DataSourceID="SqlDataSource2">
                        <ItemTemplate>
                           <a href="propertiesCat.aspx?Tag=<%# Eval("tag")%>"><%# Eval("tag")%></a> 
                        </ItemTemplate>
                    </asp:ListView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:gozoFarmhouses2 %>" ProviderName="<%$ ConnectionStrings:gozoFarmhouses2.ProviderName %>" SelectCommand="SELECT [Tag], [ID] FROM [Tags]"></asp:SqlDataSource>
                
            </div>
        </div> 
    </section>

    <section class="latest_accomodations">
        <div class="row"> 
            <div class="large-12 column"> 
                <div class="title">
                    <h1>LATEST GOZITAN RENTALS</h1>
                </div>   
            </div>
           
            <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                     <!--Start of Acc HTML Markup-->
                        <div class="large-4 column">
                            <a href="propertyDetail.aspx?id=<%# Eval("id")%>">
                                <article class="acc"> 
                                    <div class="top">
                                        <img src="<%# Eval("property_image_1")%> " />
                                        <span class="price">&euro; <%# Eval("property_rate")%> /pm</span>
                                    </div>
                                    <div class="bottom">
                                        <h3><%# Eval("property_name")%></h3>
                                        <ul>
                                            <li><span>Bathrooms</span><span class="right"><%# Eval("property_bathrooms")%></span></li>
                                            <li><span>Bedrooms</span><span class="right"><%# Eval("property_bedrooms")%></span></li>
                                            <li><span>Square Footage</span><span class="right"><%# Eval("property_square_ft")%>sqft</span></li>
                                            <li class="last"><span>Type</span><span class="right"><%# Eval("property_type")%></span></li>
                                        </ul>
                                    </div>
                                </article>
                            </a>
                        </div>
                    <!--End of Acc HTML Markup-->
                </ItemTemplate>
            </asp:ListView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gozoFarmhouses2 %>" ProviderName="<%$ ConnectionStrings:gozoFarmhouses2.ProviderName %>" SelectCommand="SELECT TOP 6 * FROM [Properties] ORDER BY [ID] DESC"></asp:SqlDataSource>

        </div>
    </section>


    <section class="agents">
        <div class="row"> 
            <div class="large-12 column"> 
                <div class="title">
                    <h1>OUR AGENTS</h1>
                </div>
            </div>
            <div class="large-12 column" style="margin:20px 0 0 0;">
                <div class="row">
                    <asp:ListView ID="ListView3" runat="server" DataSourceID="SqlDataSource3">
                        <ItemTemplate>
                            <div class="large-6 column"> 
                                <div class="agent">
                                    <a href="profile.aspx?agent=<%# Eval("ID")%>"><img src="<%# Eval("agentPhoto")%>" /></a>
                                    <h4><%# Eval("agentname")%> <%# Eval("agentSurname")%> </h4>
                                    <p><%# Eval("agentDescription")%> </p>
                                    <h5><span>Call:</span><%# Eval("agentPhone")%></h5>
                                    <h5><span>Company:</span><%# Eval("agentCompany")%></h5>
                                </div>
                            </div>
                        </ItemTemplate>
                  </asp:ListView>
                  <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:gozoFarmhouses2 %>" ProviderName="<%$ ConnectionStrings:gozoFarmhouses2.ProviderName %>" SelectCommand="SELECT TOP 4 * FROM Agents"></asp:SqlDataSource>
                </div>
            </div>
        </div>
    </section>

</asp:Content>



